//
//  Config.swift
//  Blockfolio
//
//  Created by Maybe on 09/05/2021.
//

import Foundation
import UIKit

func BClog(_ items: Any...) {
    #if DEBUG
    if items.count == 1 {
        print(items.first ?? "")
    }else {
        print(items)
    }
    #endif
}

//主色调
var Color_Primary = UIColor.hex("#272727")

//标题文字
var Color_Title = UIColor.hex("#282828")

//描述
var Color_intro = UIColor.hex("909090")

//分割线
var Color_line = UIColor.hex("#efefef")

//大标题字体
let Font_size_big: CGFloat  = 36

//正文字体
let Font_size_body:CGFloat = 14

//屏幕尺寸
let Screen_bounds:CGRect = UIScreen.main.bounds
let Screen_size:CGSize = UIScreen.main.bounds.size
let Screen_width:CGFloat = UIScreen.main.bounds.size.width
let Screent_height:CGFloat = UIScreen.main.bounds.size.height
let IS_iPhone = UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiom.phone
let IS_iPad =  UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiom.pad
let IS_iPhoneX = IS_iPhone && Screen_width >= 375 && Screent_height >= 812  //是否X以后的机型

//状态栏高度
let Status_height:CGFloat = UIApplication.shared.statusBarFrame.size.height
//let Status_height:CGFloat = IS_iPhoneX ? 44 : 20


//导航栏高度
let NavBar_height:CGFloat = IS_iPhoneX ? 44 : 44

//状态栏 + 导航栏 高度
let Top_height: CGFloat = Status_height + NavBar_height

//TabBar 高度
let Tabbar_height = IS_iPhoneX ? 83 : 49

//安全区域 底部高度
let Tabbar_Safe_height:CGFloat = IS_iPhoneX ? 34 : 0

